From Cppreference
|
|
| list& operator=( const list& other );
| (1)
|
|
|
|
|
| list& operator=( list&& other );
| (2)
| (C++11 feature)
|
|
|
|
Replaces the contents of the container.
1) Copy assignment operator. Replaces the contents with a copy of the contents of other.
2) Move assignment operator. Replaces the contents with those of other using move semantics.
[edit] Parameters
| other
| -
| another container to be used as source
|
[edit] Return value
*this
[edit] Complexity
[edit] See also
|
|
|
| constructs the list (public member function)
|
|
|
|
| assigns values to the container (public member function)
|